var fs = require('fs');
var args = process.argv.slice(2);
var input_file = args[1];
var output_file = args[3];
var width = args[5];
var height = args[7];




var option = require( input_file);

var node_echarts = require('./index.js');
node_echarts({
  path: output_file || __dirname + 'test.png',
  font:"12px 微软雅黑",
	option: option,
	width: width || 700,
	height: height || 500
});
process.exit();
